@import 'antd/es/style/themes/default.less';
.container {
  width: 100%;
  height: calc(100vh - 136px);
  box-sizing: border-box;
  padding: 24px 24px 0 24px;
  // background-color: #f5f5f5;
}
.inner {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 100%;
  background-color: #fff;
  padding-left: 300px;
  box-sizing: border-box;
}
.left {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}
.left-header {
  height: 60px;
  border-bottom: 1px solid #ddd;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  flex-shrink: 0;
}
.logo {
  width: 24px;
  margin-right: 8px;
}
.left-add {
  height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ddd;
  user-select: none;
  flex-shrink: 0;
  &:active {
    background-color: #eee;
  }
}
.left-add-text {
  color: @link-color;
  margin-left: 8px;
}
.left-list {
  flex: 1;
  position: relative;
}
.left-list-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}
.left-li {
  display: block;
  padding: 12px;
  border-bottom: 1px solid #ddd;
  user-select: none;
  &:hover {
    background-color: #efefef;
  }
  &:last-child {
    border-bottom: 0;
  }
  &.active {
    background-color: @primary-1;
  }
}
.left-li-title {
  line-height: 24px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555;
}
.left-li-date {
  font-size: 12px;
  color: #999;
  line-height: 20px;
}
.right {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.right-header {
  height: 60px;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}
.right-content {
  flex: 1;
  padding: 12px;
  background-color: #f5f5f5;
  overflow: auto;
}
.right-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  + .right-item {
    margin-top: 12px;
  }
}
.right-item-icon {
  width: 32px;
  height: 32px;
  background-color: @primary-color;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 8px;
}
.right-item-robot {
  width: 32px;
  height: 32px;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 8px;
  img {
    width: 24px;
  }
}
.right-item-content {
  padding: 4px 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 70%;
}
.right-input-block {
  height: 150px;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  padding: 12px;
  position: relative;
}
.right-input {
  height: 100% !important;
  resize: none;
}
.send-btn {
  position: absolute !important;
  bottom: 20px;
  right: 20px;
}
.list-loading {
  padding: 12px;
}
.answer-dot {
  height: 20px;
  &::after {
    content: '';
    display: inline-block;
    animation-name: dot;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}
.message-block {
  + .message-block {
    margin-top: 12px;
  }
}
@keyframes dot {
  0%   { content: '.' }
  20%  { content: '..' }
  40%  { content: '...' }
  60%  { content: '... .' }
  80%  { content: '... ..' }
  80%  { content: '... ...' }
}
